<div class="servers view">
<h2><?php echo __('Server'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($server['Server']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Code'); ?></dt>
		<dd>
			<?php echo h($server['Server']['code']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Name'); ?></dt>
		<dd>
			<?php echo h($server['Server']['name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Created'); ?></dt>
		<dd>
			<?php echo h($server['Server']['created']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Status'); ?></dt>
		<dd>
			<?php echo h($server['Server']['status']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Server Status'); ?></dt>
		<dd>
			<?php echo h($server['Server']['server_status']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Link'); ?></dt>
		<dd>
			<?php echo h($server['Server']['link']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Ordering'); ?></dt>
		<dd>
			<?php echo h($server['Server']['ordering']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Published'); ?></dt>
		<dd>
			<?php echo h($server['Server']['published']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Product'); ?></dt>
		<dd>
			<?php echo $this->Html->link($server['Product']['name'], array('controller' => 'products', 'action' => 'view', $server['Product']['id'])); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Server'), array('action' => 'edit', $server['Server']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Server'), array('action' => 'delete', $server['Server']['id']), null, __('Are you sure you want to delete # %s?', $server['Server']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Servers'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Server'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Products'), array('controller' => 'products', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Product'), array('controller' => 'products', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Advertisements'), array('controller' => 'advertisements', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Advertisement'), array('controller' => 'advertisements', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Advertisements'); ?></h3>
	<?php if (!empty($server['Advertisement'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Code'); ?></th>
		<th><?php echo __('Status'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Contract Id'); ?></th>
		<th><?php echo __('Website Id'); ?></th>
		<th><?php echo __('Position'); ?></th>
		<th><?php echo __('From Date'); ?></th>
		<th><?php echo __('To Date'); ?></th>
		<th><?php echo __('Cost'); ?></th>
		<th><?php echo __('Click'); ?></th>
		<th><?php echo __('Title'); ?></th>
		<th><?php echo __('Url Link'); ?></th>
		<th><?php echo __('Server Id'); ?></th>
		<th><?php echo __('Landing Id'); ?></th>
		<th><?php echo __('Advgroup Id'); ?></th>
		<th><?php echo __('Product Id'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($server['Advertisement'] as $advertisement): ?>
		<tr>
			<td><?php echo $advertisement['id']; ?></td>
			<td><?php echo $advertisement['code']; ?></td>
			<td><?php echo $advertisement['status']; ?></td>
			<td><?php echo $advertisement['created']; ?></td>
			<td><?php echo $advertisement['contract_id']; ?></td>
			<td><?php echo $advertisement['website_id']; ?></td>
			<td><?php echo $advertisement['position']; ?></td>
			<td><?php echo $advertisement['from_date']; ?></td>
			<td><?php echo $advertisement['to_date']; ?></td>
			<td><?php echo $advertisement['cost']; ?></td>
			<td><?php echo $advertisement['Click']; ?></td>
			<td><?php echo $advertisement['title']; ?></td>
			<td><?php echo $advertisement['url_link']; ?></td>
			<td><?php echo $advertisement['server_id']; ?></td>
			<td><?php echo $advertisement['landing_id']; ?></td>
			<td><?php echo $advertisement['advgroup_id']; ?></td>
			<td><?php echo $advertisement['product_id']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'advertisements', 'action' => 'view', $advertisement['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'advertisements', 'action' => 'edit', $advertisement['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'advertisements', 'action' => 'delete', $advertisement['id']), null, __('Are you sure you want to delete # %s?', $advertisement['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Advertisement'), array('controller' => 'advertisements', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
